<!DOCTYPE html>
<html>
<head>
    <title>系统基础配置表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset"><i class="fa fa-refresh"></i></a>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <a class="btn btn-primary btn-sm" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                    <input type="text" class="form-control input-sm" v-model="q.paramName" placeholder="参数名字">
                </div>&nbsp;&nbsp;&nbsp;
                <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                <span style="color: red;">(静态配置不得随便修改，将影响前端数据读取)</span>
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">参数名字</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="systemConfig.paramName" placeholder="参数名字" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">参数类型</div>
                <div class="col-sm-10">
                    <select v-model="systemConfig.paramType" class="form-control input-sm">
                        <option value="string">string</option>
                        <option value="integer">integer</option>
                        <option value="bool">bool</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">参数值</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="systemConfig.paramValue" placeholder="参数值" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">描述</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control input-sm" v-model="systemConfig.paramDesc" placeholder="描述" />
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary btn-sm" @click="saveOrUpdate" value="确定" />
                &nbsp;&nbsp;<input type="button" class="btn btn-warning btn-sm" @click="reload" value="返回" />
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/systemConfig/systemconfig.js?_${.now?long}"></script>
</body>
</html>
